// 公共的接口
import request from '../utils/request'
// 登录接口
export function _login(code){
  return request("/user/wxapp/login","post",{
    type:2,
    code:code
  })
}
// 注册接口
export function _reg(data){
  return request("/user/wxapp/register/complex","post",data)
}
// 获取我的收藏列表接口
export function _getMyCollection(){
  return request("/shop/goods/fav/list/v2","post",{
    type:0,
    token:wx.getStorageSync("token")
  })
}
// 获取物流信息接口
export function _getFastMail(data){
  return new Promise((resolve,reject)=>{
    wx.request({
      url: 'https://route.showapi.com/2650-3',
      type:"post",
      data:data,
      success(res){
          resolve(res)
      }
    })
  })
}